﻿<view:DialogViewBase x:Class="SqlExport.View.ExportDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:view="clr-namespace:SqlExport.View"
        Title="Export Dialog" Height="300" Width="300">
    <view:DialogViewBase.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Themes/Generic.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </view:DialogViewBase.Resources>
    <view:DialogViewBase.DataContext>
        <Binding Path="ExportDialogViewModel" Source="{StaticResource Locator}"/>
    </view:DialogViewBase.DataContext>
    <DockPanel Margin="5">

        <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal" Margin="0,5,0,0">
            <Button Style="{StaticResource DialogButtons}" Content="Ok" IsDefault="True" Command="{Binding OkCommand}" Margin="0,0,5,0"/>
            <Button Style="{StaticResource DialogButtons}" Content="Cancel" IsCancel="True" Command="{Binding CancelCommand}"/>
        </StackPanel>

        <Grid>
            <view:PropertiesEditView ItemsSource="{Binding Properties}"/>
        </Grid>
    </DockPanel>
</view:DialogViewBase>
